#include "scrollview.h"
#include <QVBoxLayout>

ScrollView::ScrollView(QWidget* parent) : QFrame(parent)
{
    QVBoxLayout* vl = new QVBoxLayout(this);
    vl->setContentsMargins(0, 0, 0, 0);

    area_ = new QScrollArea(this);
    area_->setWidgetResizable(true);
    vl->addWidget(area_);

    client_ = new QFrame(area_);
    client_->setObjectName("client");
    area_->setWidget(client_);
    area_->setAutoFillBackground(false);
}
